package game.pathfinder
{
	
	/**
	 * Represents a specific node evaluated as part of a pathfinding algorithm.
	 */
	public class Node
	{
		public var column:int;
		public var row:int;
		public var f:Number;
		public var g:Number;
		public var h:Number;
		public var walkable:Boolean = true;
		public var parent:Node;
		public var costMultiplier:Number = 1.0;
		
		public function Node(column:int, row:int)
		{
			this.column = column;
			this.row = row;
		}
		
		public static function compare(o1:Node, o2:Node):Number
		{
			return o1.f - o2.f;
		}
	}
}